<?php

/**
 * suscripcion actions.
 *
 * @package    tvpv
 * @subpackage suscripcion
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 9301 2008-05-27 01:08:46Z dwhittle $
 */
class suscripcionActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex($request)
  {
    $this->suscripcionList = SuscripcionPeer::doSelect(new Criteria());
  }
  
  public function executeExportar(){
  	$this->suscripcionList = SuscripcionPeer::doSelect(new Criteria());
  }
  
  public function executeDelete(){
  	SuscripcionPeer::retrieveByPK($this->getRequestParameter('id'))->delete();
  	$this->redirect('suscripcion/index');
  }
}
